package events

import (
	"path/filepath"
	"log"
	"os"
)

func getProjectDir(projectName string) string {

	return filepath.Dir(filepath.Join("script",projectName,"a"))
}

func checkError(err error) {
	if err != nil {
		log.Fatal("fatal error: " + err.Error())
	}
}

func fileExist(filepath string) bool {
	if _, err := os.Stat(filepath); os.IsNotExist(err) {
		return false
	}
	return true
}

